package com.easydev.mq.rabbit.pool;

import org.apache.commons.pool2.impl.GenericObjectPool;

import com.easydev.mq.exception.MessageException;
import com.rabbitmq.client.Channel;

/**
 * <Description> Channel连接池 仅用作应用中只有单个虚拟HOST的情况<br>
 * 
 * @author lx<br>
 * @version 1.0<br>
 * @CreateDate 2016年3月23日 <br>
 */
public class RabbitChannelPool extends GenericObjectPool<Channel> {

    public RabbitChannelPool(String virtualHost) throws MessageException {
        super(RabbitChannelPoolFactory.getInstance(virtualHost), new PoolConfig());
    }

}
